package models

import (
	"github.com/astaxie/beego/orm"
)

func init() {
	orm.RegisterModelWithPrefix("goetl_", new(User))
	orm.RegisterModelWithPrefix("goetl_", new(Group))
	orm.RegisterModelWithPrefix("goetl_", new(UserSetting))

	orm.RegisterModelWithPrefix("goetl_", new(Project))
	orm.RegisterModelWithPrefix("goetl_", new(ProjectVersion))
	orm.RegisterModelWithPrefix("goetl_", new(ProjectVersionDependency))

	orm.RegisterModelWithPrefix("goetl_", new(Folder))

	orm.RegisterModelWithPrefix("goetl_", new(Flow))
	orm.RegisterModelWithPrefix("goetl_", new(FlowStep))

	orm.RegisterModelWithPrefix("goetl_", new(Model))
	orm.RegisterModelWithPrefix("goetl_", new(ModelEntity))
	orm.RegisterModelWithPrefix("goetl_", new(ModelAttribute))

	orm.RegisterModelWithPrefix("goetl_", new(Resource))

	orm.RegisterModelWithPrefix("goetl_", new(Component))
	orm.RegisterModelWithPrefix("goetl_", new(ComponentAttributeSetting))
	orm.RegisterModelWithPrefix("goetl_", new(ComponentSetting))
	orm.RegisterModelWithPrefix("goetl_", new(ComponentEntitySetting))

	orm.RegisterModelWithPrefix("goetl_", new(Agent))
	orm.RegisterModelWithPrefix("goetl_", new(AgentDeployment))

	orm.RegisterModelWithPrefix("goetl_", new(AuditEvent))

	//orm.RegisterModelWithPrefix("goetl_", new(ResourceSetting))
	//orm.RegisterModelWithPrefix("goetl_", new(GroupPrivilege))

	orm.RegisterModelWithPrefix("goetl_", new(Execution))
	orm.RegisterModelWithPrefix("goetl_", new(ExecutionStep))
}
